Skip to main content

Sale with polling

  1. Send /sale with unique pay_id.
  2. Receive initial response (often status: "success" without transaction payload).
  3. Poll /check using same pay_id.
  4. Stop polling only when /check returns a final transaction result in data:
    • status: "success" with data.status = "APPROVED", or
    • status: "error" with data.status = "ERROR" or "REVERSED".

Recommended polling interval: 1000-2000 ms.

The same polling rule applies to /preauth, /confirm, /cancel, /refund, /xreport, and /close-shift.